# Contributor: Saijin-Naib <Saijin-Naib_package-maintenance@outlook.com>
# Maintainer: Saijin-Naib <Saijin-Naib_package-maintenance@outlook.com>
pkgname=catfish
pkgver=4.18.0
pkgrel=2
pkgdesc="Catfish is a handy file searching tool for Linux and Unix"
url="https://docs.xfce.org/apps/catfish/start"
# x86, s390x: zeitgeist
arch="noarch !s390x !x86"
license="GPL-2.0-or-later"
depends="
	gtk+3.0
	plocate
	py3-cairo
	py3-dbus
	py3-gobject3
	py3-pexpect
	py3-zeitgeist
	zeitgeist
	"
makedepends="
	intltool
	py3-distutils-extra
	py3-gpep517
	py3-setuptools
	py3-wheel
	"
subpackages="
	$pkgname-doc
	$pkgname-lang
	$pkgname-pyc
	"
source="https://gitlab.xfce.org/apps/catfish/-/archive/catfish-$pkgver/catfish-catfish-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgname-$pkgver"
options="!check" # No upstream test suite

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
e07011198ae339521e3b2c6f95af63a7a166859297c7f2b2e38c588f427aea33d785f90b0e0cf9e82e3a351fe3b10bd9cb79330910c74f7d2a1de1087559dae6  catfish-catfish-4.18.0.tar.gz
"
